// CategoryValidationMapper.java
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.CategoryValidation;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface CategoryValidationMapper {
    int insert(CategoryValidation record);
    int updateByPrimaryKeySelective(CategoryValidation record);
    int deleteByPrimaryKey(Long id);
    CategoryValidation selectByPrimaryKey(Long id);
    List<CategoryValidation> selectByCategoryId(@Param("categoryId") Long categoryId);
    List<CategoryValidation> selectAll();

    void deleteByCategoryId(@Param("categoryId") Long categoryId);

    int batchInsert(List<CategoryValidation> validations);
}